from django.urls import path
from job import views
from rest_framework.routers import DefaultRouter


router = DefaultRouter()
# router.register('jobList', views.JobList, basename='jobList')

urlpatterns = [
    # 获取hr发布的所有职位信息
    path('hrjobList/', views.HRJobListView.as_view()),
    # 获取职位下所有投递简历
    path('jobData/', views.JobDataView.as_view()),
    path('passedResumes/', views.PassedResumesView.as_view()),
    # HR端批量AI海选
    path('aiScreening/', views.AIScreeningView.as_view()),
    # 任务查询接口
    path('taskQuery/', views.TaskQueryView.as_view(), name='task-query'),

    # 生成AI报告，自动区分HR/候选人
    path('aiReport/', views.ScreeningResultView.as_view()),

    # 获取用户的投递
    path('myDeliveries/', views.MyDeliveriesView.as_view(), name='my-deliveries'),

    # WebSocket路由
    # path('ws/hr/<int:job_id>/', views.HRTaskStatusConsumer.as_asgi(), name='ws-hr'),
    # path('ws/user/<int:user_id>/', views.UserTaskStatusConsumer.as_asgi(), name='ws-user'),

]
urlpatterns += router.urls
